package com.wangp.mywrite.springboot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: wp
 * @date: 2023/5/25 15:31:26
 * @desc:
 **/
@RestController
public class KafkaController {

    @Autowired
    private MessageServiceKafkaImpl messageServiceKafka;

    @GetMapping("/kafka/send/{msg}")
    public void test(@PathVariable String msg){
        messageServiceKafka.sendMessage(msg);
    }
}
